package com.dyl.auth;

import com.dyl.common.security.annotation.EnableDylFeignClients;
import com.dyl.common.swagger.annotation.EnableCustomSwagger2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RestController;

/**
 * 认证授权中心
 *
 */
@EnableDylFeignClients
@EnableCustomSwagger2
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class })
@RestController
@RefreshScope
public class DylAuthApplication
{
    public static void main( String[] args )
    {
        SpringApplication.run(DylAuthApplication.class, args);
        System.out.println("认证授权中心");
    }

   /* @Value("${nacos.config}")
    private String config;

    @RequestMapping("/getValue")
    public String getValue() {
        return config;
    }*/
}
